home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ FileSystem NumericTail.xpl < prev    next >
Text File  |  1999-06-14  |  1KB  |  47 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="System\File System\Options"
  5. "NAME"="DOS Filenames with "~""
  6. "VERSION"="1.2"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Create DOS-filenames with "~" char"
  9. "WARNING"="1"
  10. "DESCRIPTION 1"="!!!WARNING!!!"
  11. "DESCRIPTION 2"="Changing this settings can lead to serious problems because it might change the name of some system folders (like "Program Files" [Progra~1]). ONLY change it when you are sure you don't need any 8+3 DOS-filenames."
  12. "DESCRIPTION 3"="By default, Windows uses the char "~" to create short filenames (DOS: 8+3) for long filenames. Deactivate this option when you don't want to have this."
  13. "DESCRIPTION 4"="!!!WARNING!!!"
  14. "AUTHOR"="Xteq Systems"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@gmx.net."
  17.  
  18.  
  19. sP="HKLM\System\CurrentControlSet\Control\FileSystem\NameNumericTail"
  20. Sub Plugin_Initialize 
  21.  i=RegReadValue(sp)
  22.  if IsEmpty(i) then
  23.   SetUIElement 1,true
  24.  end if
  25.  
  26. End Sub
  27.  
  28. Sub Plugin_CheckData(ElementIndex)
  29. End Sub
  30.  
  31. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  32.  b=GetUIElement(1)
  33.  if b=true then 'I want to have ARG~1.DOC
  34.   i=RegReadValue(sp)
  35.   if IsEmpty(i)=false then
  36.    Call RegDeleteValue(sp)
  37.   end if
  38.  else 'No thank you
  39.   Call RegWriteValue(sp,"00",3)
  40.  end if
  41.  
  42.  Restart
  43. End Sub
  44.  
  45. Sub Plugin_Terminate 
  46. End Sub
  47.